<template>
	<view>
		<button @click="layout()" type="warn">退出登陆</button>
		<button  @click="component()" type="info">组件</button>
		<button  @click="api()" type="success">Api交互</button>
		<button  @click="template()" type="default">扩展组件</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			layout() {
				uni.clearStorageSync('userInfo');
				uni.reLaunch({
					url: '../../login/login'
				});
			},
			component() {

				uni.navigateTo({
					url: '../component/component'
				})
			},
			api() {
				uni.navigateTo({
					url: '../API/API'
				})
			},
			template() {
				uni.navigateTo({
					url: '../template/template'
				})
			},



		},
		created() {

		},
		mounted() {

		}
	}
</script>

<style>

</style>
